# coding=utf-8
from src.db.basemodel import BaseModel, GetInteger, GetString, GetDatetime, GetText


class MaterialPlan(BaseModel):
    __tablename__ = 'material_plan'

    id = GetInteger(primary_key=True, auto_increment=True)
    plan_name = GetString(length=64)
    plan_type = GetInteger(default=0)
    start_time = GetDatetime()
    end_time = GetDatetime()
    create_time = GetDatetime()
    is_finish = GetInteger(default=0)
    remark = GetText()
    is_del = GetInteger(default=0)
